<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
        <head>
                <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
                <title>京北网上商城-综合网购首选（JD.COM）-正品低价、品质保障、货到付款、配送及时、放心服务、轻松购物！</title>
                <meta content="京北JD.COM-专业的综合网上购物商城，在线销售家电、数码通讯、电脑、家居百货、服装服饰、母婴、图书、食品、在线旅游等数万个品牌千万种优质商品。便捷、诚信的服务，为您提供愉悦的网上商城购物体验! " name="description">
                        <meta content="网上购物,网上商城,手机,笔记本,电脑,MP3,CD,VCD,DV,相机,数码,配件,手表,存储卡,京北商城" name="Keywords">
                                <link rel="stylesheet/less" href="http://localhost/shopFrame/Application/Index/View/Public/css/common.less" />
                                <script  type="text/javascript" src="http://localhost/shopFrame/Application/Index/View/Public/js/jquery.js" ></script>
                                <link rel="stylesheet/less" href="http://localhost/shopFrame/Application/Index/View/Public/css/list.less" />
                                <script src="http://localhost/shopFrame/Application/Index/View/Public/js/less.js" type="text/javascript"></script>
                                <script  type="text/javascript" src='http://localhost/shopFrame/Application/Index/View/Public/js/list.js'></script>
                                <?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><script type="text/javascript">
        $(function() {
                $('.deloneCart').click(function() {
                        var oSid = $(this).attr('sid');
                        var _this = $(this);
                        $.ajax({
                                url: 'http://localhost/shopFrame/Index' + '&c=ShopCart&a=del_cart',
                                data: {sid: oSid},
                                dataType: 'json',
                                type: 'post',
                                success: function(data) {
                                        _this.parents('li').remove();
                                        $('#shopping_num').html(data.total_rows);
                                        $('.totalbuy .total_price p').html(data.total_rows);
                                        $('.totalbuy .total_price h3').html('￥' + data.total);
                                }
                        })
                })
        })
</script>
<style type="text/css">
        body{
                background: white;
        }
</style>
</head>
<body>
        <!-- 顶部区域开始 -->
        <div id="header">
                <div class="header_w">
                        <!-- 收藏京北区域 -->
                        <ul class='favicons fl'>
                                <li>
                                        <b></b>
                                        <a href='#'>收藏京北</a>
                                </li>
                        </ul>
                        <!-- 收藏京北区域结束 -->
                        <!-- 更换地址区域 -->
                        <!--                        <dl class='home-area fl'>
                                                        <dt>
                                                        <b></b>
                                                        <strong>北京</strong>
                                                        <a href="#" class='cha_pos'>[更换]</a>
                                                        </dt>
                                                        <dd class='d_hidden' id='place'>
                                                                <ul>
                                                                        <li><a href="#">北京</a></li>
                                                                        <li><a href="#">上海</a></li>
                                                                        <li><a href="#">天津</a></li>
                                                                        <li><a href="#">南京</a></li>
                                                                        <li><a href="#">北京</a></li>
                                                                        <li><a href="#">上海</a></li>
                                                                        <li><a href="#">天津</a></li>
                                                                        <li><a href="#">南京</a></li>
                                                                        <li><a href="#">北京</a></li>
                                                                        <li><a href="#">上海</a></li>
                                                                        <li><a href="#">天津</a></li>
                                                                        <li><a href="#">南京</a></li>
                                                                </ul>
                                                        </dd>
                                                </dl>-->
                        <!-- 更换地址区域结束 -->
                        <!-- 欢迎来到京北右侧等等区域 -->
                        <ul class="header_right fr">
                                <?php if($_SESSION['username'] and $_SESSION['uid']){?>
                                        <li id='login_bar' class='fl'><?php echo $_SESSION['username'];?>，欢迎来到京北 <span><a href="<?php echo U('Login/out');?>">[退出]</a></span></li>
                                        <li class='my_order fl line'>|<a href="<?php echo U('Member/myorder');?>">我的订单</a>|</li>
                                        <?php  }else{ ?>
                                                <li id='login_bar' class='fl'>您好，欢迎来到京北 <span><a href="<?php echo U('Login/index');?>">[登陆]</a><a href="<?php echo U('Register/index');?>">[注册]</a></span></li>
                                <?php }?>
                                <!--<li class='m_club fl line_r'><b></b><a href="#">会员俱乐部</a>|</li>-->
                                <!-- <li class='app_jd fl'><b></b><a href="#">手机京北</a><i></i>|</li> -->
                                <!--                                <li class='service fl'>
                                                                        <span class="outline"></span>
                                                                        <span class="blank"></span>
                                                                        客户服务
                                                                        <i></i>
                                                                        <div class="service_list">
                                                                                <a href="#">售后服务</a>
                                                                                <a href="#">在线客服</a>
                                                                                <a href="#">投诉中心</a>
                                                                                <a href="#">客服邮箱</a>
                                                                        </div>
                                                                </li>
                                                                <li class='site_map fl'><s></s>
                                                                网站导航
                                                                <span class="outline"></span>
                                                                <span class="blank"></span>
                                                                <i></i>
                                                                <dl class="site_special">
                                                                        <dt>特色栏目</dt>
                                                                        <dd><div class="list_1">
                                                                                        <a href="#">京北通信</a>
                                                                                        <a href="#">校园之星</a>
                                                                                        <a href="#">视频购物</a>
                                                                                        <a href="#">京北社区</a>
                                                                                        <a href="#">在线读书</a>
                                                                                        <a href="#">装机大师</a>
                                                                                        <a href="#">家装城</a>
                                                                                        <a href="#">我喜欢</a>
                                                                                        <a href="#">搭配购</a>
                                                                                </div></dd>
                                                                </dl>
                                                                </li>-->
                        </ul>
                        <!-- 欢迎来到京北右侧等等区域结束 -->
                </div>
        </div>
        <!-- 顶部区域结束 -->
        <!-- 顶部logo区域开始 -->
        <div id="logo_area">
                <a href="<?php echo U('Index/index');?>"><img src="http://localhost/shopFrame/Application/Index/View/Public/images/logo-201305.png" alt="" /></a>
                <!-- 搜索块区域 -->
                <div class='form'>
                        <form action="<?php echo U('List/search');?>" method="post">
                                <input type="text" name="search" class='text' />
                                <input type="submit"  class='button' value='搜索'/>
                </div>
                <!-- 搜索快区域结束 -->
                <!-- 我的京北区域 -->
                <div class="my_jd ">
                        <dl class='my_jd_area'>
                                <dt>
                                <b></b>
                                <?php if($_SESSION['username']){?>
                                        <a href="<?php echo U('Member/index');?>">我的京北</a>
                                        <?php  }else{ ?>
                                                <a href="<?php echo U('Login/index');?>">我的京北</a>
                                <?php }?>

                                <i></i>
                                </dt>
                                <s></s>
                                <dd>
                                <?php if($_SESSION['username'] && $_SESSION['uid']){?>
                                        <div class='prompt_islogin'><?php echo $_SESSION['username'];?><a href="<?php echo U('Member/index');?>">去我的京北首页</a>
                                        </div>
                                        <?php  }else{ ?>
                                                <div class='prompt'>
                                                        您好，请<a href="#">登陆</a>
                                                </div> 
                                <?php }?>
                                <div class="uclist">
                                        <ul class='list_1'>
                                                <li><a href="#">待处理订单</a></li>
                                                <li><a href="#">咨询回复</a></li>
                                                <li><a href="#">降价商品</a></li>
                                                <li><a href="#">返修退换货</a></li>
                                                <li><a href="#">优惠券</a></li>
                                        </ul>
                                        <ul class='list_2'>
                                                <li><a href="#">我的关注 ></a></li>
                                                <li><a href="#">我的京豆 ></a></li>
                                                <li><a href="#">我的理财 ></a></li>
                                                <li><a href="#">我的白条 ></a></li>
                                        </ul>
                                </div>
                                </dd>
                        </dl>

                </div>
                <!-- 我的京北区域结束 -->
                <!-- 我的购物车区域 -->
                <div class="my_car">
                        <b></b>
                        <a href="#">去购物车结算</a>
                        <i></i>
                        <s></s>
                        <div class='shopping'>
                                <p id='shopping_num'><?php if($allCart['goods']){?><?php echo $allCart['total_rows'];?><?php  }else{ ?>0<?php }?></p>
                        </div>
                        <div class="car_shop">
                                <?php if($cartData){?>
                                        <strong>最新加入的商品</strong>
                                        <ul class='list_all'>
                                                <?php if(is_array($cartData)){?><?php  foreach($cartData as $k=>$v){ ?>
                                                        <li>
                                                                <div class="p_img">
                                                                        <a href='<?php echo U("Content/index",array("gid"=>$v["option"]["gid"]));?>'><img src='http://localhost/shopFrame/<?php echo $v['option']['thumb'];?>' width="50" height="50"/></a>
                                                                </div>
                                                                <div class="p_title">
                                                                        <a href='<?php echo U("Content/index",array("gid"=>$v["option"]["gid"]));?>' title="<?php echo $v['name'];?>"><?php echo hd_substr($v['name'],45,'');?><h2>&nbsp;<?php echo $v['option']['stand'];?></h2></a>
                                                                </div>
                                                                <div class="p_price">
                                                                        <strong>￥<?php echo $v['price'];?></strong>
                                                                        <p>x<?php echo $v['num'];?></p>
                                                                        <a href='javascript:;' sid='<?php echo $k;?>' class='deloneCart'>删除</a>
                                                                </div>
                                                        </li>
                                                <?php }}?>
                                        </ul>
                                        <div class="totalbuy">
                                                <div class="total_price">
                                                        共<p><?php echo $allCart['total_rows'];?></p>件商品&nbsp;&nbsp;&nbsp;共计&nbsp;<h3>￥<?php echo $allCart['total'];?></h3>
                                                </div>
                                                <div class="buybutton"><a href="<?php echo U('ShopCart/index');?>">去购物车结算</a></div>
                                        </div>
                                        <?php  }else{ ?>
                                                <span></span>购物车中还没有商品，赶紧选购吧！
                                <?php }?>
                        </div>
                </div>
                <!-- 我的购物车区域结束 -->
                <div id="report_center">
                        <a href="#"><img src="http://localhost/shopFrame/Application/Index/View/Public/images/baokong.png" alt="" /></a>
                </div>
        </div>	
        <!-- 顶部logo区域结束 -->
        <!-- 顶部导航区域 -->
        <div id="nav">
                <!-- 导航左部区域 -->
                <div class="nav_l">
                        <h2>
                                <a href="javascript:;" class='all_shop'>全部商品分类</a>
                                <b></b>
                        </h2>
                        <div class="cate_l">
                                <?php if(is_array($Type)){?><?php  foreach($Type as $k=>$v){ ?>
                                        <div class='item  <?php if($k == 0){?> first<?php }?>'>
                                                <div class="item_title "><p>
                                                        <?php if(is_array($typeCon)){?><?php  foreach($typeCon as $key=>$s){ ?>
                                                                <?php if($s['tsort'] == $v['tsort']){?>
                                                                        <a href="<?php echo U('List/index',array('tid'=>$s['tid']));?>"><?php echo $s['tname'];?></a>&nbsp;
                                                                <?php }?>
                                                        <?php }}?>
                                                        <s></s></p><i></i>
                                                </div>
                                                <div class="list_area">
                                                        <div class="left_list">
                                                                <?php if(is_array($data)){?><?php  foreach($data as $n=>$c){ ?>
                                                                        <?php if($v['tsort'] == $c['tsort']){?>
                                                                                <dl>
                                                                                        <dt>
                                                                                        <a href="javascript:;" style='text-decoration: none;cursor:default;'><?php echo $c['cname'];?></a>
                                                                                        </dt>
                                                                                        <dd>
                                                                                        <?php if(is_array($c['son'])){?><?php  foreach($c['son'] as $key=>$s){ ?>
                                                                                                <a href="<?php echo U('List/index',array('cid'=>$s['cid']));?>"><?php echo $s['cname'];?></a>
                                                                                        <?php }}?>
                                                                                        </dd>
                                                                                </dl>
                                                                        <?php }?>
                                                                <?php }}?>
                                                        </div>
                                                        <div class="right_list">
                                                                <dl>
                                                                        <dt>推荐品牌</dt>
                                                                        <dd>
                                                                                <?php $hd["list"]["b"]["total"]=0;if(isset($brand) && !empty($brand)):$_id_b=0;$_index_b=0;$lastb=min(8,count($brand));
$hd["list"]["b"]["first"]=true;
$hd["list"]["b"]["last"]=false;
$_total_b=ceil($lastb/1);$hd["list"]["b"]["total"]=$_total_b;
$_data_b = array_slice($brand,0,$lastb);
if(count($_data_b)==0):echo "";
else:
foreach($_data_b as $key=>$b):
if(($_id_b)%1==0):$_id_b++;else:$_id_b++;continue;endif;
$hd["list"]["b"]["index"]=++$_index_b;
if($_index_b>=$_total_b):$hd["list"]["b"]["last"]=true;endif;?>

                                                                        <?php if($b['tsort'] == $v['tsort']){?>
                                                                                <a href="javascript:"><img src="http://localhost/shopFrame/<?php echo $b['logo'];?>"/></a>
                                                                        <?php }?>
                                                                        <?php $hd["list"]["b"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
                                                                        </dd>
                                                                </dl>
                                                        </div>
                                                </div>
                                        </div>
                                <?php }}?> 
                        </div>
                </div>
                <!-- 导航左部区域结束 -->
                <!-- 导航右部区域 -->
                <ul class="nav_r">
                        <li><a href="<?php echo U('Index/index');?>" class='first_nav'>首页</a></li>
                        <?php $hd["list"]["v"]["total"]=0;if(isset($Type) && !empty($Type)):$_id_v=0;$_index_v=0;$lastv=min(5,count($Type));
$hd["list"]["v"]["first"]=true;
$hd["list"]["v"]["last"]=false;
$_total_v=ceil($lastv/1);$hd["list"]["v"]["total"]=$_total_v;
$_data_v = array_slice($Type,0,$lastv);
if(count($_data_v)==0):echo "";
else:
foreach($_data_v as $key=>$v):
if(($_id_v)%1==0):$_id_v++;else:$_id_v++;continue;endif;
$hd["list"]["v"]["index"]=++$_index_v;
if($_index_v>=$_total_v):$hd["list"]["v"]["last"]=true;endif;?>

                        <li><a href="<?php echo U('List/index',array('tid'=>$v['tid']));?>"><?php echo $v['tname'];?></a></li>
                        <?php $hd["list"]["v"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>

                </ul>
                <p class="nav_r_ads">
                        <a href="#"><img src="http://localhost/shopFrame/Application/Index/View/Public/images/nav_ads.png"  /></a>
                </p>
                <!-- 导航右部区域结束 -->
        </div>
        <!-- 导航区域结束 -->
                                <!-- 当前在哪个分类区域 -->
                                <div class="now_cate">
                                        <strong><a href="<?php echo U('List/index',array('tid'=>$type['tid']));?>"><?php echo $type['tname'];?></a></strong>
                                        <?php if($_GET['cid']){?>
                                                &nbsp;＞&nbsp;
                                                <span>
                                                        <?php $hd["list"]["n"]["total"]=0;if(isset($nowCate) && !empty($nowCate)):$_id_n=0;$_index_n=0;$lastn=min(1000,count($nowCate));
$hd["list"]["n"]["first"]=true;
$hd["list"]["n"]["last"]=false;
$_total_n=ceil($lastn/1);$hd["list"]["n"]["total"]=$_total_n;
$_data_n = array_slice($nowCate,0,$lastn);
if(count($_data_n)==0):echo "";
else:
foreach($_data_n as $key=>$n):
if(($_id_n)%1==0):$_id_n++;else:$_id_n++;continue;endif;
$hd["list"]["n"]["index"]=++$_index_n;
if($_index_n>=$_total_n):$hd["list"]["n"]["last"]=true;endif;?>

                                                                <?php if($hd['list']['n']['last']){?>
                                                                        <?php echo $n['cname'];?>
                                                                        <?php  }else{ ?>
                                                                                <?php echo $n['cname'];?>&nbsp;＞&nbsp;
                                                                <?php }?>
                                                        <?php $hd["list"]["n"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
                                                </span>
                                        <?php }?>
                                </div>
                                <!-- 当前在哪个分类区域结束 -->
                                <!-- 列表页内容区域 -->
                                <div class="list_con">
                                        <!-- 列表页左侧区域 -->
                                        <div class="left">
                                                <?php if($otCate){?>
                                                        <div class="sortlist">
                                                                <div class="listarea">
                                                                        <?php if(is_array($otCate)){?><?php  foreach($otCate as $key=>$v){ ?>
                                                                                <div class="list_item list_mix">
                                                                                        <h3><b></b><?php echo $v['cname'];?></h3>
                                                                                        <ul style='display: block;'>
                                                                                                <?php if(is_array($v['son'])){?><?php  foreach($v['son'] as $key=>$s){ ?>
                                                                                                        <li><a href="<?php echo U('List/index',array('cid'=>$s['cid']));?>"><?php echo $s['cname'];?></a></li>
                                                                                                <?php }}?>
                                                                                        </ul>
                                                                                </div>
                                                                        <?php }}?>
                                                                </div>
                                                        </div>
                                                <?php }?>
                                                <!-- 列表页一周销量排行区域 -->
<!--                                                <div class="high_sale">
                                                        <h2>最近浏览</h2>
                                                        <div class="hign_area">
                                                                <ul>
                                                                        <li class='foce1 plus'>
                                                                                <span>1</span>
                                                                                <div class="p_img"><a href="#"><img src="http://localhost/shopFrame/Application/Index/View/Public/images/rBEhWlM4-WcIAAAAAAPtoaP1i2EAAK9JQMOHzgAA-25580.jpg" alt="" /></a></div>
                                                                                <div class="p_name"><a href="#">Johnson强生邦迪透明防水创可贴</a><br/><strong>￥11.00</strong></div>
                                                                        </li>
                                                                        <li class='foce2'>
                                                                                <span>2</span>
                                                                                <div class="p_img"><a href="#"><img src="http://localhost/shopFrame/Application/Index/View/Public/images/rBEhWlM4-WcIAAAAAAPtoaP1i2EAAK9JQMOHzgAA-25580.jpg" alt="" /></a></div>
                                                                                <div class="p_name"><a href="#">Johnson强生邦迪透明防水创可贴</a><br/><strong>￥11.00</strong></div>
                                                                        </li>
                                                                        <li class='foce3'>
                                                                                <span>3</span>
                                                                                <div class="p_img"><a href="#"><img src="http://localhost/shopFrame/Application/Index/View/Public/images/rBEhWlM4-WcIAAAAAAPtoaP1i2EAAK9JQMOHzgAA-25580.jpg" alt="" /></a></div>
                                                                                <div class="p_name mix_pname"><a href="#">Johnson强生邦迪透明防水创可贴</a><br/><strong>￥11.00</strong></div>
                                                                        </li>
                                                                        <li>
                                                                                <span>4</span>
                                                                                <div class="p_img"><a href="#"><img src="http://localhost/shopFrame/Application/Index/View/Public/images/rBEhWlM4-WcIAAAAAAPtoaP1i2EAAK9JQMOHzgAA-25580.jpg" alt="" /></a></div>
                                                                                <div class="p_name mix_pname"><a href="#">Johnson强生邦迪透明防水创可贴</a><br/><strong>￥11.00</strong></div>
                                                                        </li>
                                                                        <li>
                                                                                <span>5</span>
                                                                                <div class="p_img"><a href="#"><img src="http://localhost/shopFrame/Application/Index/View/Public/images/rBEhWlM4-WcIAAAAAAPtoaP1i2EAAK9JQMOHzgAA-25580.jpg" alt="" /></a></div>
                                                                                <div class="p_name mix_pname"><a href="#">Johnson强生邦迪透明防水创可贴</a><br/><strong>￥11.00</strong></div>
                                                                        </li>
                                                                        <li>
                                                                                <span>6</span>
                                                                                <div class="p_img"><a href="#"><img src="http://localhost/shopFrame/Application/Index/View/Public/images/rBEhWlM4-WcIAAAAAAPtoaP1i2EAAK9JQMOHzgAA-25580.jpg" alt="" /></a></div>
                                                                                <div class="p_name mix_pname"><a href="#">Johnson强生邦迪透明防水创可贴</a><br/><strong>￥11.00</strong></div>
                                                                        </li>
                                                                </ul>
                                                        </div>
                                                </div>-->
                                                <!-- 列表页一周销量排行区域结束-->
                                        </div>
                                        <!-- 列表页左侧区域结束 -->
                                        <!-- 右侧区域 -->
                                        <div class="right">
                                                <!-- 顶部热卖区域 -->
<!--                                                <div class="hot_sale">
                                                        <div class="head_area">
                                                                <h3>热卖区域</h3>
                                                        </div>
                                                        <div class="con_area">
                                                                <ul>
                                                                        <li>
                                                                                <div class="p_img">
                                                                                        <a href="#"><img src="http://localhost/shopFrame/Application/Index/View/Public/images/5410fa43N6d77870a.jpg" /></a>
                                                                                </div>
                                                                                <div class="p_title">
                                                                                        <a href="#">海氏海诺 消毒棉球 碘伏型 25枚*10盒</a><br/>
                                                                                        <span>特价：<strong>￥42.90</strong></span>
                                                                                </div>
                                                                                <a href="#" class='btn_buy'>立即抢购</a>

                                                                        </li>
                                                                        <li>
                                                                                <div class="p_img">
                                                                                        <a href="#"><img src="http://localhost/shopFrame/Application/Index/View/Public/images/5410fa43N6d77870a.jpg" /></a>
                                                                                </div>
                                                                                <div class="p_title">
                                                                                        <a href="#">海氏海诺 消毒棉球 碘伏型 25枚*10盒</a><br/>
                                                                                        <span>特价：<strong>￥42.90</strong></span>
                                                                                </div>
                                                                                <a href="#" class='btn_buy'>立即抢购</a>

                                                                        </li>
                                                                        <li>
                                                                                <div class="p_img">
                                                                                        <a href="#"><img src="http://localhost/shopFrame/Application/Index/View/Public/images/5410fa43N6d77870a.jpg" /></a>
                                                                                </div>
                                                                                <div class="p_title">
                                                                                        <a href="#">海氏海诺 消毒棉球 碘伏型 25枚*10盒</a><br/>
                                                                                        <span>特价：<strong>￥42.90</strong></span>
                                                                                </div>
                                                                                <a href="#" class='btn_buy'>立即抢购</a>

                                                                        </li>
                                                                </ul>
                                                        </div>
                                                </div>-->
                                                <!-- 顶部热卖区域结束 -->
                                                <!-- 商品筛选区域 -->
                                                <div class="filtrate">
                                                        <div class="head_area">
                                                                <?php if($_GET['cid']){?>
                                                                        <span><?php echo $brandInfo[0]['cname'];?> - </span><?php }?>商品筛选
                                                        </div>
                                                        <div class="con_area">
                                                                <?php if($brandInfo){?>
                                                                        <div class="attr attr_1">
                                                                                <div class="attr_name">品牌：</div>
                                                                                <div class="attr_value">
                                                                                        <ul>  
                                                                                                <li <?php if(!$_GET['bid']){?>class='cur'<?php }?> ><a href="<?php echo U('List/index',array('cid'=>$_GET['cid'],'tid'=>$_GET['tid'],'param'=>implode('_',$param)));?>">全部</a></li>
                                                                                                <?php if(is_array($brandInfo)){?><?php  foreach($brandInfo as $key=>$v){ ?>
                                                                                                        <li<?php if($_GET['bid'] == $v['bid']){?> class='cur'<?php }?>><a href="<?php echo U('List/index',array('bid'=>$v['bid'],'cid'=>$_GET['cid'],'tid'=>$_GET['tid'],'param'=>implode('_',$param)));?>"><?php echo $v['bname'];?></a></li>   
                                                                                                <?php }}?>
                                                                                        </ul>
                                                                                </div>
                                                                                <!--                                                                                <span  class='more'><i></i>更多</span>-->
                                                                        </div>
                                                                <?php }?>
                                                                <?php if(is_array($attrInfo)){?><?php  foreach($attrInfo as $key=>$v){ ?>
                                                                        <?php 
                                                                        $bid=Q('get.bid',0,'intval');
                                                                        $temp=$param;
                                                                        $temp[$key]=0;
                                                                        ?>
                                                                        <div class="attr">
                                                                                <div class="attr_name"><?php echo $v['taname'];?>：</div>
                                                                                <div class="attr_value">
                                                                                        <ul>  
                                                                                                <li<?php if($param[$key] == 0){?> class='cur'<?php }?>><a href="<?php echo U('List/index',array('cid'=>$_GET['cid'],'bid'=>$bid,'tid'=>$_GET['tid'],'param'=>implode('_',$temp)));?>">全部</a></li>
                                                                                                <?php if(is_array($v['tavalue'])){?><?php  foreach($v['tavalue'] as $k=>$s){ ?>
                                                                                                        <?php 
                                                                                                        $temp[$key]=$s['gaid'];
                                                                                                        ?>
                                                                                                        <li <?php if($param[$key] == $temp[$key]){?> class='cur'<?php }?>><a href="<?php echo U('List/index',array('cid'=>$_GET['cid'],'bid'=>$bid,'tid'=>$_GET['tid'],'param'=>implode('_',$temp)));?>"><?php echo $s['ganame'];?></a></li>
                                                                                                <?php }}?>
                                                                                        </ul>
                                                                                </div>
                                                                        </div>
                                                                <?php }}?>
                                                        </div>
                                                </div>
                                                <!-- 商品筛选区域结束 -->
                                                <!-- 商品销量排序等筛选区域 -->
                                                <div class="filter_list">
                                                        <div class="filter_1">
                                                                <dl class='order'>
                                                                        <dt>排序:</dt>
                                                                        <?php $nowStock=Q('get.stock','all');?>
                                                                        <dd  <?php if($_GET["sort"] == totalsales){?> class='active'<?php }?>><a href="<?php echo U('List/index',array('bid'=>$_GET['bid'],'cid'=>$_GET['cid'],'stock'=>$nowStock,'tid'=>$_GET['tid'],'sort'=>'totalsales','param'=>implode('_',$param)));?>">销量</a></dd>
                                                                        <dd <?php if($_GET["sort"] == priceDesc){?> class='priceDescActive'<?php }?><?php if($_GET["sort"] == priceAsc){?> class='priceActive'<?php }?>><a href="<?php echo U('List/index',array('bid'=>$_GET['bid'],'stock'=>$nowStock,'cid'=>$_GET['cid'],'tid'=>$_GET['tid'],'sort'=>$price,'param'=>implode('_',$param)));?>">价格<b></b></a></dd>
<!--                                                                        <dd  <?php if($_GET["sort"] == commentnum){?> class='active'<?php }?>><a href="<?php echo U('List/index',array('bid'=>$_GET['bid'],'cid'=>$_GET['cid'],'tid'=>$_GET['tid'],'sort'=>'commentnum','stock'=>$nowStock,'param'=>implode('_',$param)));?>">评论数</a></dd>-->
                                                                        <dd <?php if($_GET["sort"] == addtime){?> class='active'<?php }?>><a href="<?php echo U('List/index',array('bid'=>$_GET['bid'],'cid'=>$_GET['cid'],'tid'=>$_GET['tid'],'sort'=>'addtime','stock'=>$nowStock,'param'=>implode('_',$param)));?>">上架时间</a></dd>
                                                                </dl>
<!--                                                                <div class="page">
                                                                        <span class="text"><strong>1</strong>/15</span>
                                                                        <div class="pre_disable com_page"><b></b>上一页</div>
                                                                         <a href="#" class='pre com_page'>上一页<b></b></a> 
                                                                        <a href="#" class='next com_page'>下一页<b></b></a>
                                                                         <div class="next_disable com_page"><b></b>下一页</div> 
                                                                </div>
                                                                <div class="total">共<strong>865</strong>件商品</div>-->
                                                        </div>
                                                        <div class="filter_2">
                                                                <dl class='repectory'>
                                                                        <dt>库存:</dt>
                                                                        <!--                                                                        <dd class='store-selector'>
                                                                                                                                                        <div class="text">北京朝阳区管庄<b></b></div>
                                                                                                                                                        <div class="content">
                                                                                                                                                                <div class="selector_title">
                                                                                                                                                                        <ul class='tab'>
                                                                                                                                                                                <li class='active'><a href="javascript:;"><b>北京</b><i></i></a></li>
                                                                                                                                                                                <li ><a href="javascript:;"><b>北京</b><i></i></a></li>
                                                                                                                                                                                <li><a href="javascript:;"><b>北京</b><i></i></a></li>
                                                                                                                                                                        </ul>
                                                                                                                                                                </div>
                                                                                                                                                                <div class="selector_item">
                                                                                                                                                                        <ul>
                                                                                                                                                                                <li><a href="#">三环以内</a></li>
                                                                                                                                                                                <li><a href="#">六环以外</a></li>
                                                                                                                                                                                <li><a href="#">西三旗</a></li>
                                                                                                                                                                                <li><a href="#">西二旗</a></li>
                                                                                                                                                                                <li class='longarea'><a href="#">三环到四环之间</a></li>
                                                                                                                                                                                <li class='longarea'><a href="#">四环到五环之间</a></li>
                                                                                                                                                                                <li class='longarea'><a href="#">五环到六环之间</a></li>
                                                                                                                                                                        </ul>
                                                                                                                                                                </div>
                                                                                                                                                                <div class="selector_item">
                                                                                                                                                                        <ul>
                                                                                                                                                                                <li><a href="#">三环以内</a></li>
                                                                                                                                                                                <li><a href="#">六环以外</a></li>
                                                                                                                                                                                <li><a href="#">西三旗</a></li>
                                                                                                                                                                                <li><a href="#">西二旗</a></li>
                                                                                                                                                                                <li class='longarea'><a href="#">三环到四环之间</a></li>
                                                                                                                                                                                <li class='longarea'><a href="#">四环到五环之间</a></li>
                                                                                                                                                                                <li class='longarea'><a href="#">五环到六环之间</a></li>
                                                                                                                                                                        </ul>
                                                                                                                                                                </div>
                                                                                                                                                                <div class="selector_item">
                                                                                                                                                                        <ul>
                                                                                                                                                                                <li><a href="#">三环以内</a></li>
                                                                                                                                                                                <li><a href="#">六环以外</a></li>
                                                                                                                                                                                <li><a href="#">西三旗</a></li>
                                                                                                                                                                                <li><a href="#">西二旗</a></li>
                                                                                                                                                                                <li class='longarea'><a href="#">三环到四环之间</a></li>
                                                                                                                                                                                <li class='longarea'><a href="#">四环到五环之间</a></li>
                                                                                                                                                                                <li class='longarea'><a href="#">五环到六环之间</a></li>
                                                                                                                                                                        </ul>
                                                                                                                                                                </div>
                                                                                                                                                        </div>
                                                                                                                                                </dd>-->
                                                                        <?php  $nowSort=Q('get.sort',0);?>
                                                                        <dd class='only_have'><a <?php if($_GET['stock'] == stock){?>class='active'<?php }?> href="<?php echo U('List/index',array('bid'=>$_GET['bid'],'cid'=>$_GET['cid'],'stock'=>$stock,'tid'=>$_GET['tid'],'sort'=>$nowSort,'param'=>implode('_',$param)));?>"><b></b>仅显示有货</a></dd>
                                                                </dl>
                                                        </div>
                                                </div>
                                                <!-- 商品销量排序等筛选区域结束 -->
                                                <!-- 商品列表区域 -->
                                                <div class="g_list">
                                                        <ul>
                                                                <?php if(is_array($goodlist)){?><?php  foreach($goodlist as $key=>$v){ ?>
                                                                        <li>
                                                                                <div class="list_item">
                                                                                        <div class="g_img">
                                                                                                <a href="<?php echo U('Content/index',array('gid'=>$v['gid']));?>"><img src="http://localhost/shopFrame/<?php echo $v['listimg'];?>" /></a>
                                                                                                <div class="picon">
                                                                                                        <b></b>
                                                                                                </div>
                                                                                        </div>
                                                                                        <div class="g_name">
                                                                                                <a href="<?php echo U('Content/index',array('gid'=>$v['gid']));?>"><?php echo $v['gname'];?><span style="color:#FF0000;"><?php echo $v['hlname'];?><span></a>
                                                                                                                        </div>
                                                                                                                        <div class="g_price">
                                                                                                                                <strong>￥<?php echo $v['jdprice'];?></strong>
                                                                                                                                <span>
                                                                                                                                        <a>赠品</a>
                                                                                                                                </span>
                                                                                                                        </div>
<!--                                                                                                                        <div class="g_comment">
                                                                                                                                <a href="#">已有655人评论</a>
                                                                                                                        </div>-->
<!--                                                                                                                        <div class="stocklist">
                                                                                                                                <span>北京有货</span>
                                                                                                                        </div>-->
                                                                                                                        <div class="btnlist">
                                                                                                                                <a href="<?php echo U('shopCart/addCart',array('gid'=>$v['gid'],'glid'=>$v['glid'],'num'=>1));?>" class='btn_buy'>加入购物车</a>
                                                                                                                                <!--<a href="#" class='compare'>对比</a>-->
                                                                                                                        </div>
                                                                                                                        </div>
                                                                                                                        </li>
                                                                                                                        <?php }}?>
                                                                                                                        </ul>
                                                                                                                        </div>
                                                                                                                        <!-- 商品列表区域结束 -->
                                                                                                                        <!-- 底部page上一页下一页 -->
                                                                                                                        <div class="bottomPage">
                                                                                                                                <div class="pagefr">
                                                                                                                                        <span class='prev_disable com_page'><b></b>上一页</span>
                                                                                                                                        <!-- <a href="#" class='pre'>上一页<b></b></a> -->
                                                                                                                                        <span class="current">1</span>
                                                                                                                                        <a href="#">2</a>
                                                                                                                                        <a href="#">3</a>
                                                                                                                                        <span class="balabala">...</span>
                                                                                                                                        <a href="#">15</a>
                                                                                                                                        <a href="#" class='next'>下一页<b></b></a>
                                                                                                                                        <!-- <span class='next_disable com_page'><b></b>下一页</span> -->
                                                                                                                                </div>
                                                                                                                        </div>
                                                                                                                        <!-- 底部page上一页下一页结束 -->
                                                                                                                        </div>
                                                                                                                        <!-- 右侧区域结束 -->
                                                                                                                        </div>
                                                                                                                        <!-- 列表页内容区域结束 -->
                                                                                                                        <?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!-- 底部购物流程区域 -->
	<div id="bottom">
		<dl>
			<dt>
				<b></b>
				<strong>购物指南</strong>
			</dt>
			<dd><a href="#">购物流程</a></dd>
			<dd><a href="#">会员介绍</a></dd>
			<dd><a href="#">团购/机票</a></dd>
			<dd><a href="#">常见问题</a></dd>
			<dd><a href="#">大家电</a></dd>
			<dd><a href="#">联系客服</a></dd>
		</dl>
		<dl class='send_type'>
			<dt>
				<b></b>
				<strong>配送方式</strong>
			</dt>
			<dd><a href="#">上门自提</a></dd>
			<dd><a href="#">211限时达</a></dd>
			<dd><a href="#">配送服务查询</a></dd>
			<dd><a href="#">配送费收取标准</a></dd>
			<dd><a href="#">海外配送</a></dd>
		</dl>
		<dl class='pay_type'>
			<dt>
				<b></b>
				<strong>支付方式</strong>
			</dt>
			<dd><a href="#">货到付款</a></dd>
			<dd><a href="#">在线支付</a></dd>
			<dd><a href="#">分期付款</a></dd>
			<dd><a href="#">邮局汇款</a></dd>
			<dd><a href="#">公司转账</a></dd>
		</dl>
		<dl class='saled_ser'>
			<dt>
				<b></b>
				<strong>售后服务</strong>
			</dt>
			<dd><a href="#">售后政策</a></dd>
			<dd><a href="#">价格保护</a></dd>
			<dd><a href="#">返修/退换货</a></dd>
			<dd><a href="#">取消订单</a></dd>
		</dl>
		<dl class='special_ser'>
			<dt>
				<b></b>
				<strong>特色服务</strong>
			</dt>
			<dd><a href="#">夺宝岛</a></dd>
			<dd><a href="#">DIY装机</a></dd>
			<dd><a href="#">延保服务</a></dd>
			<dd><a href="#">京东E卡</a></dd>
			<dd><a href="#">节能补贴</a></dd>
			<dd><a href="#">京东通信</a></dd>
		</dl>
		<div class="fr">
			<h3>京东自营覆盖区</h3>
			<div>京东已向全国1847个区县提供自营配送服务，支持货到付款、POS机刷卡和售后上门服务。</div>
		</div>
	</div>
	<!-- 底部购物流程区域结束 -->
	<!-- 底部关于我们区域 -->
	<div class="footer">
		<div class="link">
			<a href="#">关于我们</a>|
			<a href="#">联系我们</a>|
			<a href="#">人才招聘</a>|
			<a href="#">营销中心</a>|
			<a href="#">手机京东</a>|
		              <a href="#">友情链接</a>|
		              <a href="#">京东社区</a>
		</div>
	</div>
	<!-- 底部关于我们区域结束 -->
	<!-- 返回顶部区域 -->
	<div class="back_top">
		<a href="javascript:;" class='backTop'>返回<br/>顶部</a>
	</div>
	<!-- 返回顶部区域结束 -->
</body>
</html>